import {router} from 'nuijs';

export default module.extend(router, {
    _static:{
        location(url, data, reload){
            if(url){
                url = 'platform/' + url.replace(/^\/+/, '')
            }
            router.exports._static.location.call(this, url, data, reload)
        }
    },
    _initPath(){
        var self = this, opts = self._options, router = self.constructor;
        self.path = router._replace('platform' + '/' + opts.path.replace(/^\/+/, ''))
    }
})